package com.cloudwise.isop.kg.linstener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

import java.util.ArrayList;
import java.util.List;

/**
 * 审批流程专职人员
 */
public class ExpertsLinstener implements TaskListener {
    @Override
    public void notify(DelegateTask delegateTask) {
        List<String> userList = new ArrayList<>();
        Double prefix = Math.floor(Math.random() * 10);
        userList.add("Experts" + prefix);
        delegateTask.addCandidateUsers(userList);
    }
}
